package week5;

/**
 * Created by dell on 2017/3/21.
 */
interface Some5 {
    void doSome();
}
abstract class AbstractSome1 implements Some5 {
    public abstract void doSome();
    public void doService() {
        System.out.println("Do some service.");
    }
}
public class Exercise4 {
    public static void main(String[] args) {
        AbstractSome s = new AbstractSome() {
            @Override
            public void doSome() {
                System.out.println("Do something.");
            }
            public void doService() {

            }
        };
        s.doService();
    }
}